package com.lq.Dao;

import java.util.List;

import com.lq.pojo.User;
import com.lq.util.Pager;
import org.apache.ibatis.annotations.Param;


public interface UserDao{
	/**
	 * 	查询全部的用户
	 * @return
	 * @throws Exception
	 */
	public List<User> selByUsers() throws Exception;

	/**
	 * 根据名字进行查询
	 * @param name
	 * @return
	 * @throws Exception
	 */
	public List<User> selByname(@Param("name") String name,@Param("password") String password)throws Exception;

	/**
	 * 添加用户
	 * @return
	 * @throws Exception
	 */
	public int addByUser(@Param("name")  String name,@Param("password") String password,@Param("personalIcon") String personalIcon)throws Exception;

}
